package felix.things.router.mqtt.server.broker.config.credentials;

import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @author Felix
 * @date 2019/7/27
 */
@Component
@ConditionalOnProperty(prefix = "spring.mqtt.broker.credentials", value = "type", havingValue = "anonymous", matchIfMissing = true)
public class AnonymousCredentials implements MqttServerCredentials {

    @Override
    public void configureSsl(ChannelPipeline channelPipeline, SocketChannel socketChannel) {

    }
}
